package com.ruoyi.swla2.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 大表-历史数据对象 t_terminal_history_data
 *
 * @author gdqt
 * @date 2023-09-11
 */
@TableName("t_terminal_history_data")
public class TerminalHistoryData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 厂家编号
     */
    @Excel(name = "厂家编号")
    @TableField("SupplierID")
    private Long SupplierID;

    /**
     * 设备主键
     */
    @TableField("TerminalID")
    private String TerminalID;

    /**
     * 租户ID
     */
    @Excel(name = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    /**
     * 总流量
     */
    @TableField("TotalFlow")
    @Excel(name = "总流量")
    private BigDecimal TotalFlow;

    /**
     * 正向读数
     */
    @TableField("ReadNumber")
    @Excel(name = "正向读数")
    private BigDecimal ReadNumber;

    /**
     * 反向读数
     */
    @TableField("ReverseNumber")
    @Excel(name = "反向读数")
    private BigDecimal ReverseNumber;

    /**
     * 瞬时流量
     */
    @TableField("InstantNumber")
    @Excel(name = "瞬时流量")
    private BigDecimal InstantNumber;

    /**
     * 瞬时流速
     */
    @TableField("InstantVelocity")
    @Excel(name = "瞬时流速")
    private BigDecimal InstantVelocity;

    /**
     * 管网压力
     */
    @TableField("Pressure")
    @Excel(name = "管网压力")
    private BigDecimal Pressure;

    /**
     * 终端电压
     */
    @TableField("TerminalVol")
    @Excel(name = "终端电压")
    private BigDecimal TerminalVol;

    /**
     * 终端信号强度
     */
    @TableField("TerminalCSQ")
    @Excel(name = "终端信号强度")
    private Long TerminalCSQ;

    /**
     * 信号描述
     */
    @TableField("TerminalCSQDescribe")
    @Excel(name = "信号描述")
    private String TerminalCSQDescribe;

    /**
     * 阀门状态
     */
    @TableField("ValveState")
    @Excel(name = "阀门状态")
    private Long ValveState;

    /**
     * 终端时间
     */
    @TableField("TerminalTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "终端时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date TerminalTime;

    /**
     * 创建时间
     */
    @TableField("CreateDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date CreateDate;

    /**
     * 抄表时间
     */
    @TableField("ReadDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ReadDate;

    /**
     * 报警状态(0-无报警 1-有报警)
     */
    @TableField("WarnFlag")
    @Excel(name = "报警状态(0-无报警 1-有报警)")
    private Integer WarnFlag;

    /**
     * 警告
     */
    @TableField("Warning")
    @Excel(name = "警告")
    private String Warning;

    /**
     * 数据获取的类型(1:自动获取)
     */
    @Excel(name = "数据获取的类型(1:自动获取)")
    private Integer type;

    /**
     * 平台表单自增主键
     */
    @Excel(name = "平台表单自增主键")
    private Long ID;

    @TableField(exist = false)
    private String readDateStart;
    @TableField(exist = false)
    private String readDateEnd;
    @TableField(exist = false)
    private String terminalName;

    @TableField("EasIonID")
    private String easIonId;

    public String getEasIonId() {
        return easIonId;
    }

    public void setEasIonId(String easIonId) {
        this.easIonId = easIonId;
    }

    public String getTerminalName() {
        return terminalName;
    }

    public void setTerminalName(String terminalName) {
        this.terminalName = terminalName;
    }

    public void setSupplierID(Long SupplierID) {
        this.SupplierID = SupplierID;
    }

    public Long getSupplierID() {
        return SupplierID;
    }

    public void setTerminalID(String TerminalID) {
        this.TerminalID = TerminalID;
    }

    public String getTerminalID() {
        return TerminalID;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTotalFlow(BigDecimal TotalFlow) {
        this.TotalFlow = TotalFlow;
    }

    public BigDecimal getTotalFlow() {
        return TotalFlow;
    }

    public void setReadNumber(BigDecimal ReadNumber) {
        this.ReadNumber = ReadNumber;
    }

    public BigDecimal getReadNumber() {
        return ReadNumber;
    }

    public void setReverseNumber(BigDecimal ReverseNumber) {
        this.ReverseNumber = ReverseNumber;
    }

    public BigDecimal getReverseNumber() {
        return ReverseNumber;
    }

    public void setInstantNumber(BigDecimal InstantNumber) {
        this.InstantNumber = InstantNumber;
    }

    public BigDecimal getInstantNumber() {
        return InstantNumber;
    }

    public void setInstantVelocity(BigDecimal InstantVelocity) {
        this.InstantVelocity = InstantVelocity;
    }

    public BigDecimal getInstantVelocity() {
        return InstantVelocity;
    }

    public void setPressure(BigDecimal Pressure) {
        this.Pressure = Pressure;
    }

    public BigDecimal getPressure() {
        return Pressure;
    }

    public void setTerminalVol(BigDecimal TerminalVol) {
        this.TerminalVol = TerminalVol;
    }

    public BigDecimal getTerminalVol() {
        return TerminalVol;
    }

    public void setTerminalCSQ(Long TerminalCSQ) {
        this.TerminalCSQ = TerminalCSQ;
    }

    public Long getTerminalCSQ() {
        return TerminalCSQ;
    }

    public void setTerminalCSQDescribe(String TerminalCSQDescribe) {
        this.TerminalCSQDescribe = TerminalCSQDescribe;
    }

    public String getTerminalCSQDescribe() {
        return TerminalCSQDescribe;
    }

    public void setValveState(Long ValveState) {
        this.ValveState = ValveState;
    }

    public Long getValveState() {
        return ValveState;
    }

    public void setTerminalTime(Date TerminalTime) {
        this.TerminalTime = TerminalTime;
    }

    public Date getTerminalTime() {
        return TerminalTime;
    }

    public void setCreateDate(Date CreateDate) {
        this.CreateDate = CreateDate;
    }

    public Date getCreateDate() {
        return CreateDate;
    }

    public void setReadDate(Date ReadDate) {
        this.ReadDate = ReadDate;
    }

    public Date getReadDate() {
        return ReadDate;
    }

    public void setWarnFlag(Integer WarnFlag) {
        this.WarnFlag = WarnFlag;
    }

    public Integer getWarnFlag() {
        return WarnFlag;
    }

    public void setWarning(String Warning) {
        this.Warning = Warning;
    }

    public String getWarning() {
        return Warning;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setID(Long ID) {
        this.ID = ID;
    }

    public Long getID() {
        return ID;
    }

    public String getReadDateStart() {
        return readDateStart;
    }

    public void setReadDateStart(String readDateStart) {
        this.readDateStart = readDateStart;
    }

    public String getReadDateEnd() {
        return readDateEnd;
    }

    public void setReadDateEnd(String readDateEnd) {
        this.readDateEnd = readDateEnd;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("SupplierID", getSupplierID())
                .append("TerminalID", getTerminalID())
                .append("tenantId", getTenantId())
                .append("TotalFlow", getTotalFlow())
                .append("ReadNumber", getReadNumber())
                .append("ReverseNumber", getReverseNumber())
                .append("InstantNumber", getInstantNumber())
                .append("InstantVelocity", getInstantVelocity())
                .append("Pressure", getPressure())
                .append("TerminalVol", getTerminalVol())
                .append("TerminalCSQ", getTerminalCSQ())
                .append("TerminalCSQDescribe", getTerminalCSQDescribe())
                .append("ValveState", getValveState())
                .append("TerminalTime", getTerminalTime())
                .append("CreateDate", getCreateDate())
                .append("ReadDate", getReadDate())
                .append("WarnFlag", getWarnFlag())
                .append("Warning", getWarning())
                .append("type", getType())
                .append("ID", getID())
                .toString();
    }
}
